define(['./../../initial', './../../model/Project'],
    function () {
        var app = angular.module('App.home');
        app.controller('projectsCtrl', ['$scope', '$timeout', '$state', '$stateParams', 'Project', 'allProjects',
            function ($scope, $timeout, $state, $stateParams, Project, allProjects) {
                $scope.cityList = allProjects;
                $scope.filterPrjTypes = Project.filterPrjTypes.map(function (item) {
                    return item.projectType;
                });
                $timeout(function () {
                    $('#filterPrjTypes').dropdown();
                }, 300);
                //
                $scope.filterType = "";
                $scope.setFilter = function (type) {
                    $scope.filterType = type;
                };
            }
        ]);
    });
